@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  color: $textColor;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  font-size: 14px;
}
img {
  vertical-align: top;
}
:root{
  --primaryColor: #435ebe;
}

.red {
  color: $SecondColor !important;
}
.mam {
  width: 100%;
}

.overhiddenText {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis; //（文本溢出显示省略号）
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}
.ql-container{
  min-height: 120px !important;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

.el-button {
  height: 36px;
  padding: 0 20px;
  &.primary{
    border-color: $primaryColor;
  }

  &:focus {
    color: $primaryColor;
  }

  &:active {
    color: $primaryColor;
    border-color: $primaryColor;
  }
}

.el-button--danger {
  color: $SecondColor;
  background-color: #fff;
  border-color: $SecondColor;

  &:hover {
    background-color: #fbedea;
    border-color: $SecondColor;
    color: $SecondColor;
  }
}
.nopadding {
  padding-left: 0;
  padding-top: 4px;
  padding-bottom: 0;
  padding-right: 0;
}
.el-button--primary {
  background-color: $primaryColor;
  border-color: $primaryColor;

  &:hover {
    background-color: $hoverColor;
    border-color: $hoverColor;
    color: #fff;
  }

  &:active {
    background-color: $hoverColor;
    border-color: $hoverColor;
    color: #fff;
  }

  &:focus {
    background-color: $hoverColor;
    border-color: $hoverColor;
    color: #fff;
  }
}

.el-button--default {
  &:hover {
    background-color: #fff;
    border-color: $hoverColor;
    color: $hoverColor;
  }
}

.el-button--text {
  color: $primaryColor;
  padding: 0;

  // height: auto;
  &:hover,
  &:active,
  &:focus {
    outline: none;
    border: none;
  }
}

.el-tabs__item.is-active {
  color: $primaryColor;
}

.el-tabs__active-bar {
  background-color: $primaryColor;
}

.el-input.is-active .el-input__inner,
.el-input__inner:focus {
  border-color: $primaryColor
}

.app-main-container {
  margin: 18px;
  background-color: #fff !important;
  padding: 24px 30px;
  border-radius: 4px;
  box-sizing: border-box;
  min-height: calc(100% - 40px);

  &.xpadding {
    padding: 20px 30px;
  }
  &.tabpdding {
    padding-top: 20px;
  }

  .el-pagination.is-background .el-pager li:not(.disabled).active {
    background-color: $primaryColor;

    &:hover {
      color: #fff;
    }
  }

}

.el-tabs__item {
  padding: 0 30px;
}

.el-tabs__item.is-left {
  padding: 0 20px;
}

.app-main-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 40px;
  color: #111111;
  display: flex;
  align-items: center;

  .goback {
    font-size: 12px;
    color: $primaryColor;
    padding: 0 15px;
    height: 28px;
    line-height: 28px;
    margin-left: 24px;
    border-radius: 14px;
    border: 1px solid;
    cursor: pointer;

    &:hover {
      background-color: $primaryColor;
      color: #fff;
    }
  }
}

.doumee-element-table,
.doumee-table {
  border-color: #DFE2E8;

  tr,
  th,
  td {
    border-color: #DFE2E8;
  }

  .el-image {
    width: 80px;
    height: 40px;
    display: block;
    margin: 0 auto;

    .el-icon-circle-close {
      color: white;
    }
  }
}

.doumee-element-table {
  overflow-x: hidden !important;

  .el-table__footer-wrapper,
  .el-table__header-wrapper {
    overflow-x: hidden !important;
  }

  .el-table--scrollable-x .el-table__body-wrapper {
    overflow: auto !important;
  }
}

.submit-button-style {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.doumee-table-options-line {
  display: inline-block;
  height: 14px;
  width: 1px;
  background-color: #DFE2E8;
  margin: 0 10px;
}

.doumee-pagination {
  padding: 20px 0;
}

.el-pagination span:not([class*=suffix]),
.el-pager li,
.el-pagination__sizes .el-input .el-input__inner {
  font-size: 14px;
}

.el-pagination__sizes .el-input .el-input__inner {
  &:hover {
    border-color: $primaryColor;
  }
}

.el-input__inner {
  border-color: $borderColor;
}

.el-select .el-input.is-focus .el-input__inner {
  border-color: $primaryColor;
}

.el-select-dropdown__item.selected {
  color: $primaryColor;
}

.el-form-item__label {
  line-height: 36px;
}

.el-input,
.el-select {
  // height: 36px;

  .el-input__inner {
    height: 36px;
    color: $textColor;
    padding: 0 16px;
    line-height: 36px;
  }

  &.el-input--small .el-input__inner {
    line-height: 32px;
    height: 32px;
  }

  .el-input__icon {
    height: 36px;
    line-height: 36px;
  }
}

.el-date-editor {
  height: 36px;

  .el-range-separator,
  .el-range__close-icon {
    line-height: 34px;
  }

  .el-input__inner {
    padding-left: 30px;
  }
}

.el-input--prefix .el-input__inner {
  padding-left: 30px;
}

.el-input--suffix .el-input__inner {
  padding-right: 30px;
}

.el-input-number {
  width: 120px;
  line-height: 28px;
  height: 28px;

  .el-input {
    line-height: 28px;
    height: 28px;
  }

  .el-input .el-input__inner {
    line-height: 28px;
    height: 28px;
  }
}

.el-input-number .el-input-number__decrease,
.el-input-number .el-input-number__increase {
  width: 26px;
  height: 26px;

  &:hover {
    color: $primaryColor;
  }

  &:hover:not(.is-disabled)~.el-input .el-input__inner:not(.is-disabled) {
    border-color: $primaryColor;
  }
}

.el-breadcrumb__inner.is-link:hover {
  color: $primaryColor;
}

.doumee-filter {
  display: flex;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
  align-items: center;

  .el-input,
  .el-select {
    width: 200px;
    margin-right: 20px;
    margin-bottom: 20px;
    height: 36px;

    .el-input__inner {
      color: $textColor;
      padding: 0 16px;
    }
  }

  .el-date-editor {
    width: 200px;
    margin-right: 20px;
    margin-bottom: 20px;

    .el-input__inner {
      padding-left: 30px;
    }
  }

  .el-button {
    margin-bottom: 20px;
  }

  .el-form-item {
    margin-bottom: 20px;
    margin-right: 20px;

    .el-input,
    .el-select,
    .el-date-editor {
      margin-right: 0;
    }

    .el-input,
    .el-select,
    .el-date-editor,
    .el-button {
      margin-bottom: 0;
    }
  }
}

.doumee_table_header,
.doumee-table-buttons {
  margin-bottom: 20px;
}

// .doumee-filter+.doumee_table_header,
// .doumee-filter+.doumee-table-buttons {
//   margin-top: -20px;
// }

.el-range-editor.el-input__inner {
  padding: 0 10px;
  height: 36px;
  line-height: 36px;
}

.property-title {
  color: $primaryColor;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.line-style {
  background-color: $borderColor;
  height: 1px;
  margin-bottom: 10px;
}

.margin-l-10 {
  margin-left: 10px;
}

.margin-t-10 {
  margin-top: 20px;
}

.margin-t-20 {
  margin-top: 20px;
}

.el-form-item__content {
  line-height: 36px;
}

// .doumee-form {
//   max-width: 1000px;
// }

.position-right {
  position: absolute;
  right: 0;
}

.date-division-line {
  text-align: center;
  display: inline-block;
  color: #999;
  width: 20px;
  margin-bottom: 20px;
  margin-left: -10px;
  margin-right: 10px;
}

.el-table {
  color: $textColor;

  td,
  th {
    padding: 7px 0;
  }

  .table-header {
    background-color: $tableHeadColor !important;

    th {
      background-color: $tableHeadColor !important;
      color: #111111 !important;
      font-size: 14px;
      height: 50px !important;
    }
  }

  .el-table__row.hover-row,
  .el-table__row:hover,
  .el-table__row.hover-row>td,
  .el-table__row:hover>td {
    background-color: #f7f7f7;
  }
}

.flex-cb {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-c {
  display: flex;
  align-items: center;
}

.flex-cc {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-1 {
  flex: 1;
}

.base-bg-cover {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.base-bg-contain {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.single-maxheight {
  max-height: 50px;
}

.entitycard-style {
  width: 70%;
}

.entitycard-btn-style {
  margin-left: 20px;
}

.wzZts {
  color: $textColor;
}

.sbxf {
  cursor: pointer;
}


.tip-style {
  color: $placeholder9;
  font-size: 13px;
  font-weight: 400;
  margin-left: 10px;

  &.noLeft {
    margin-left: 0;
  }
}

.sub-title {
  color: #999;
  font-size: 12px;
  font-weight: 400;
  margin-left: 10px;
  margin-bottom: 20px;
}

.item-title {
  font-size: 16px;
  font-weight: 600;
  color: #222222;
  margin-bottom: 10px;
}

.el-form-item {
  margin-bottom: 20px;
}

.popClass {
  background-color: #435EBE;
  color: #fff;
  padding: 10px;
  text-align: center;
}

.popClass .popper__arrow,
.popClass .popper__arrow::after {
  border-top-color: #435EBE !important;
}

.el-dialog__header {
  color: #222222;
  background-color: #f7f7f7;

  .el-dialog__title {
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
  }
}

.el-dialog__headerbtn {
  font-size: 20px;
}

.el-dialog__body {
  padding: 20px 30px;
}

.el-dialog__footer {
  padding: 10px 30px 30px;
}

.table_tj {
  overflow-x: auto !important;
  &:after {
    position: relative;
  }
  &:before {
    background: none !important;
  }
  .el-table__header-wrapper {
    overflow: visible !important;
  }
  .el-table__body-wrapper {
    overflow: visible !important;
  }
  .el-table__footer-wrapper {
    overflow: visible !important;
  }
  .el-table--scrollable-x .el-table__body-wrapper {
    overflow: visible !important;
  }
}

.primaryColor {
  color: $primaryColor !important;
}

.secondColor {
  color: $SecondColor !important;
}

.placeholder6 {
  color: $placeholder6;
}

.placeholder9 {
  color: $placeholder9;
  div{
    line-height: 28px;
  }
}

.color2 {
  color: $textColor2;
}

.color3 {
  color: $textColor;
}

.h1 {
  font-size: 18px;
  font-weight: 600;
}

.h2 {
  font-size: 16px;
  font-weight: 600;
  color: #222222;
}

.h3 {
  font-size: 14px;
  font-weight: 600;
  color: #222222;
}

.pointer {
  cursor: pointer !important;
}

input::-webkit-input-placeholder {
  /* WebKit browsers，webkit内核浏览器 */
  color: $placeholder9 !important;
  font-size: 14px;
}

input:-moz-placeholder {
  /* Mozilla Firefox 4 to 18 */
  color: $placeholder9 !important;
  font-size: 14px;
}

input::-moz-placeholder {
  /* Mozilla Firefox 19+ */
  color: $placeholder9 !important;
  font-size: 14px;
}

input:-ms-input-placeholder {
  /* Internet Explorer 10+ */
  color: $placeholder9 !important;
  font-size: 14px;
}

.manufacturer {
  justify-content: space-between;

  .detail {
    color: $primaryColor;
    cursor: pointer;
  }
}

// ::-webkit-scrollbar {
//   width: 5px;
//   height: 5px;
//   background-color: #eee;
// }

// ::-webkit-scrollbar-thumb {
//   background-color: $primaryColor;
// }

// ::-webkit-scrollbar-button {
//   display: none;
// }
.el-table__fixed-right {

  .el-button,
  .el-pop-btns {
    position: relative;
    line-height: 23px;
  }

  .el-button+.el-button,
  .el-button+.el-pop-btns {
    margin-left: 10px;
    padding-left: 10px;

    &:before {
      content: '';
      width: 1px;
      display: inline-block;
      background-color: #DFE2E8;
      height: 14px;
      position: absolute;
      top: 50%;
      left: 0;
      margin-top: -7px;
    }
  }
}

.el-switch.is-checked .el-switch__core,
.el-checkbox__input.is-checked .el-checkbox__inner,
.el-radio__input.is-checked .el-radio__inner {
  border-color: $primaryColor !important;
  background-color: $primaryColor !important;
}

.el-checkbox__input.is-checked+.el-checkbox__label,
.el-radio__input.is-checked+.el-radio__label,
.el-time-panel__btn.confirm {
  color: $primaryColor !important;
}

.el-range-editor.is-active {
  &:hover {
    border-color: $primaryColor !important;
  }
}

.el-checkbox__input.is-focus .el-checkbox__inner {
  border-color: $primaryColor !important;

  &:hover {
    border-color: $primaryColor !important;
  }
}

.el-checkbox__inner {
  &:hover {
    border-color: $primaryColor !important;
  }
}

.el-aside {
  // 侧边栏折叠动画速度
  transition: width 0.25s;
  -webkit-transition: width 0.25s;
  -moz-transition: width 0.25s;
  -webkit-transition: width 0.25s;
  -o-transition: width 0.25s;
}

.el-message-box__wrapper {
  .el-button--primary {
    background-color: $primaryColor;
    border-color: $primaryColor;

    &:hover {
      background-color: $hoverColor;
      border-color: $hoverColor;
      color: #fff;
    }
  }

  .el-button--default {
    &:hover {
      background-color: #fff;
      border-color: $hoverColor;
      color: $hoverColor;
    }
  }

  .el-button--text {
    color: $primaryColor;
    padding: 0;
  }
}

.fwxInfo {
  width: 100%;
}

.fwxInfo image,
.fwxInfo img {
  max-width: 100%;
}

.el-table__row {
  td:not(.is-hidden):last-child {
    right: -1px;
    border-right-width: 2px;
  }
}

.el-table__fixed-header-wrapper {
  .el-table__header {
    th:not(.is-hidden):last-child {
      right: -1px;
      border-right-width: 2px;
    }
  }
}

.doumee-element-tableb {
  .el-table__row {
    td:not(.is-hidden):last-child {
      right: 0;
      border-right-width: 1px;
    }
  }

  .el-table__fixed-header-wrapper {
    .el-table__header {
      th:not(.is-hidden):last-child {
        right: 0;
        border-right-width: 1px;
      }
    }
  }

  .el-table__row {
    td:not(.is-hidden):nth-last-child(2) {
      border-left: 1px solid #EBEEF5;
    }
  }

  .el-table__fixed-header-wrapper {
    .el-table__header {
      th:not(.is-hidden):nth-last-child(2) {
        left: 1px;
        border-right-width: 2px;
      }
    }
  }
}

.doumee-element-tablec {
  .el-table__row {
    td:not(.is-hidden):last-child {
      right: 0;
      border-right-width: 1px;
    }
  }

  .el-table__fixed-header-wrapper {
    .el-table__header {
      th:not(.is-hidden):last-child {
        right: 0;
        border-right-width: 1px;
      }
    }
  }

  .el-table__row {
    td:not(.is-hidden):nth-last-child(3) {
      border-left: 1px solid #EBEEF5;
    }
  }

  .el-table__fixed-header-wrapper {
    .el-table__header {
      th:not(.is-hidden):nth-last-child(3) {
        left: 1px;
        border-right-width: 2px;
      }
    }
  }
}

.doumee-element-tabled {
  .el-table__row {
    td:not(.is-hidden):last-child {
      right: 0;
      border-right-width: 1px;
    }
  }

  .el-table__fixed-header-wrapper {
    .el-table__header {
      th:not(.is-hidden):last-child {
        right: 0;
        border-right-width: 1px;
      }
    }
  }

  .el-table__row {
    td:not(.is-hidden):nth-last-child(4) {
      border-left: 1px solid #EBEEF5;

    }
  }

  .el-table__fixed-header-wrapper {
    .el-table__header {
      th:not(.is-hidden):nth-last-child(4) {
        left: 1px;
        border-right-width: 2px;
      }
    }
  }
}

.el-radio-button {
  .el-radio-button__inner {
    color: #333333;
    padding: 10px 20px;
    font-size: 14px;

    span {
      display: inline-block;
      margin-left: 4px;
      padding: 0 4px;
      text-align: center;
      min-width: 15px;
      height: 15px;
      background: $SecondColor;
      border-radius: 8px;
      font-size: 11px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #FFFFFF;
      line-height: 15px;
      box-sizing: border-box;
      border-radius: 50%;
    }
  }

  &.is-active {
    .el-radio-button__inner {
      background-color: $primaryColor;
      color: #fff;
      font-weight: 600;
      box-shadow: none;
      border-color: $primaryColor;
    }

  }
}

.moreBtn {
  height: 40px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  cursor: pointer;

  &:hover {
    background-color: #edeff7;
  }
}

.ckxqBtn {
  color: $primaryColor;
  cursor: pointer;
  text-decoration: underline;
}

.el-drawer {
  overflow: hidden;
}


.el-drawer__header {
  background: #F4F7FC;
  padding: 10px 20px;
  margin-bottom: 0;

  span {
    font-size: 16px;
    line-height: 20px;
    color: #222222;
    font-weight: 600;
  }
}

.el-drawer__body {
  height: calc(100% - 45px);
  overflow: auto;
}

.el-drawer__header span:focus {
  outline: 0 !important;
}

.total_wrap {
  display: flex;
  background-color: #f5f7fc;
  margin-bottom: 20px;

  .item {
    padding: 12px 0;
    margin-right: 20px;

    .label {
      font-size: 12px;
      color: #666666;
      margin-bottom: 8px;
    }

    .money {
      font-size: 12px;
    }

    .value {
      color: #222222;
      font-size: 16px;
      font-weight: 600;
    }
  }

  .first {
    background-color: #e9ebf6;
    text-align: center;

    .label {
      color: #333333;
    }
  }
}

.total_wrapb {
  background-color: #f5f7fc;
  margin-bottom: 20px;
  display: flex;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  padding: 11px 20px;
  line-height: 14px;
  float: right;

  .item_list {
    margin-right: 10px;

    .money {
      color: #000;
    }
  }

  .first_item {
    border-right: 1px solid #333;
    padding-right: 10px;
    margin-right: 10px;
  }
}

.total_wrapc {
  display: flex;
  background-color: #f3f2fa;
  margin-bottom: 20px;
  height: 70px;
  overflow: hidden;

  .item_list {
    display: flex;
    width: calc(100% - 200px);
    overflow-y: hidden;
    overflow-x: auto;
  }

  .item {
    padding: 16px 30px;
    text-align: center;
    font-size: 12px;
    flex-shrink: 0;

    .key {
      margin-bottom: 6px;
    }

    .value {
      .price {
        font-size: 16px;
      }
    }
  }

  .first {
    padding: 16px 20px;
    background-color: $primaryColor;
    color: #fff;
    width: 90px;
    font-size: 14px;
  }

  .jesm {
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    font-size: 14px;
  }
}
.total_wrap{
  display: flex;
  background-color: #f3f2fa;
  margin-bottom: 20px;
  height: 70px;
  overflow: hidden;
  .item_list{
    display: flex;
    width: calc(100% - 200px);
    overflow-y: hidden;
    overflow-x: auto;
  }
  .item{
    padding: 16px 30px;
    text-align: center;
    font-size: 12px;
    flex-shrink: 0;
    .key{
      margin-bottom: 6px;
    }
    .value{
      .price{
        font-size: 16px;
      }
    }
  }
  .first{
    padding: 16px 20px;
    background-color: $primaryColor;
    color:#fff;
    width: 90px;
    font-size: 14px;
  }
  .jesm {
    color:#333;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    font-size: 14px;
  }
}

.el-tooltip__popper {
  max-width: 500px;
}
.borderless-input  {
  display: inline-block;
  min-width: 200px;
  input {
    border: none !important;
    outline: none !important;
    padding:  0 !important;
    flex: 1;
  }
}
.ql-toolbar.ql-snow .ql-picker-label {
  display: flex;
  align-items: center;
}